package com.zlzlib.librxoknet.base;


import okhttp3.Headers;

/**
 * @Desc: 解析xml的请求库
 * @DateTime: 2020/4/15 17:50
 * @Author zlz
 * @Version 1.0
 */
public abstract class BaseXmlRetrofit<T> extends BaseProRetrofit<T> {

    protected abstract String soapAction();

    @Override
    protected Headers.Builder requestHeader() {
        return super.requestHeader().add("SOAPAction", soapAction())
                .add("Content-Type", "text/xml;charset=UTF-8")
                .add("Accept-Encoding", "gzip,deflate");
    }
}
